-- GENERATED SPELL FOR [Black Widow Hatchling] --


function spell0_930(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_930', 655, 1)
end

function spell1_930(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_930', 0, 1)
end

function spell2_930(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(7367,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_930', 30000, 1)
end

function spell3_930(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_930', 30000, 1)
end

function spell4_930(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(4167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_930', 4000, 1)
end

function Sorts_930(pUnit, Event)
local choix_sorts_930 = math.random(0, 4)
if choix_sorts_930 == 0 then
pUnit:RegisterEvent('spell0_930', 1, 1)
end
if choix_sorts_930 == 1 then
pUnit:RegisterEvent('spell1_930', 1, 1)
end
if choix_sorts_930 == 2 then
pUnit:RegisterEvent('spell2_930', 1, 1)
end
if choix_sorts_930 == 3 then
pUnit:RegisterEvent('spell3_930', 1, 1)
end
if choix_sorts_930 == 4 then
pUnit:RegisterEvent('spell4_930', 1, 1)
end
end

function mob930_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_930', math.random(1500, 3000), 1)
end

function mob930_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob930_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob930_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(930, 1, 'mob930_Action')
RegisterUnitEvent(930, 2, 'mob930_Leave')
RegisterUnitEvent(930, 3, 'mob930_Kill')
RegisterUnitEvent(930, 4, 'mob930_Die')
